package com.asset.service.imp;

import com.asset.pojo.Department;
import com.asset.service.BaseService;
import com.asset.service.DepartService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by gongshaobo on 2017/1/24  11:21.
 */
@Service
public class DepartServiceImp extends BaseService implements DepartService {
    @Override
    public void addDepart(Department department){
       departmentMapper.addDepart(department);
    }
    @Override
    public List<Department> listDepart(String name){
        return departmentMapper.listDepart(name);
    }
}
